package com.wesley.schedule.support.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 调度任务执行状态
 * </p>
 *
 * @author WangPanYong
 * @since 2020/11/27
 */
@AllArgsConstructor
@Getter
@Accessors(fluent = true)
public enum JobRunStatus {

    /**
     * 准备
     */
    READY(1),

    /**
     * 运行中
     */
    RUNNING(2),

    /**
     * 完成
     */
    FINISH(3),

    /**
     * 失败
     */
    ERROR(4);

    private final Integer code;
}
